-
-
Notifications
You must be signed in to change notification settings - Fork 237
Fix '--make-template' for union types #1760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Please run make cleanup
Codecov Report
@@ Coverage Diff @@
## main #1760 +/- ##
==========================================
+ Coverage 80.89% 82.40% +1.50%
==========================================
Files 47 47
Lines 8177 8179 +2
Branches 2230 2231 +1
==========================================
+ Hits 6615 6740 +125
+ Misses 1047 944 -103
+ Partials 515 495 -20
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
Thank you for the suggestion. $ make cleanup
...
reformatted mypy-stubs/prov/model.pyi
All done! ✨ 🍰 ✨
1 file reformatted, 413 files left unchanged.
...
diff-quality --compare-branch=main --violations=pydocstyle --fail-under=100 pydocstyle_report.txt
-------------
Diff Quality
Quality Report: pydocstyle
Diff: main...HEAD, staged and unstaged changes
-------------
No lines with quality information in this diff.
------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
|
Thanks! |
This request makes
cwltool --make-templateto support union types.It includes the following fixes:
--make-templatefails with the following message: "IndexError: string index out of range"CommentedSeq()#insertwith empty comment.insertcan handleNonecomment but cannot handle empty string comment. I fixed it by checking whether the comment is an empty string or not.cwltool --make-templatedoes not work with the union type because it try to generate examples for all possible types. This request fixes it by generating an example for the first candidate typeI checked it works with the following CWL document.
I guess this request can fix #1404.